package com.coderknock.homework.ioc.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * <p></p>
 *
 * @author 三产
 * @version 1.0
 * @date 2017-06-21
 * @QQGroup 213732117
 * @website http://www.coderknock.com
 * @copyright Copyright 2017 拿客 coderknock.com  All rights reserved.
 * @since JDK 1.8
 */
@Target({FIELD, METHOD})
@Retention(RUNTIME)
@Documented
public @interface Autowired {
    /**
     * value 是默认的值
     *
     * @return
     */
    String value() default "";

    /**
     * 是否是必需的
     *
     * @return
     */
    boolean required() default false;
}
